
import java.awt.event.ActionEvent;
import java.text.DecimalFormat;
import javax.swing.JOptionPane;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Carlos Magno
 */
public class CadastroNotasFaltas extends javax.swing.JInternalFrame {

    /**
     * Creates new form CadastroNotasFaltas
     */
    public CadastroNotasFaltas() {
        initComponents();
        addDiscNaCBox();
        cBoxAlunos.setEnabled(false);
        botaoCadastrar.setEnabled(false);
        desabilitaCampos();
    }

    public void desabilitaCampos() {
        campoNota1.setEnabled(false);
        campoNota2.setEnabled(false);
        campoNota3.setEnabled(false);
        campoNota4.setEnabled(false);
        campoFinal.setEnabled(false);
        campoFaltas.setEnabled(false);
        cbNota1.setEnabled(false);
        cbNota2.setEnabled(false);
        cbNota3.setEnabled(false);
        cbNota4.setEnabled(false);
        cbFinal.setEnabled(false);
        cbNota1.setSelected(false);
        cbNota2.setSelected(false);
        cbNota3.setSelected(false);
        cbNota4.setSelected(false);
        cbFinal.setSelected(false);
    }

    public void addDiscNaCBox() {
        cBoxDisc.setEnabled(false);
        for (Disciplina d : Caderneta.getDisciplinas()) {
            cBoxDisc.addItem(d.getNome());
        }
        cBoxDisc.setSelectedIndex(-1);
        cBoxDisc.setEnabled(true);
    }

    public void addAlunosNaCBox(Disciplina disciplina) {
        cBoxAlunos.setEnabled(false);
        cBoxAlunos.removeAllItems();
        if (disciplina.getMatriculados().isEmpty()) {
            JOptionPane.showMessageDialog(this, "Esta disciplina não tem alunos matriculados");
        } else {
            for (String mat : disciplina.getMatriculados()) {
                for (Aluno a : Caderneta.getAlunos()) {
                    if (a.getMatricula().equals(mat)) {
                        cBoxAlunos.addItem(a.getNome() + " - " + a.getMatricula() + " - " + a.getCurso());
                        break;
                    }
                }
            }
            cBoxAlunos.setSelectedIndex(-1);
            cBoxAlunos.setEnabled(true);
        }
    }

    private String tiraVirgula(String comVirgula) {
        return comVirgula.replace(',', '.');
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        cBoxDisc = new javax.swing.JComboBox();
        labelAluno = new javax.swing.JLabel();
        cBoxAlunos = new javax.swing.JComboBox();
        botaoCadastrar = new javax.swing.JButton();
        campoNota1 = new javax.swing.JTextField();
        campoNota2 = new javax.swing.JTextField();
        campoNota3 = new javax.swing.JTextField();
        campoNota4 = new javax.swing.JTextField();
        campoFaltas = new javax.swing.JTextField();
        cbNota1 = new javax.swing.JCheckBox();
        cbNota2 = new javax.swing.JCheckBox();
        cbNota3 = new javax.swing.JCheckBox();
        cbNota4 = new javax.swing.JCheckBox();
        cbFinal = new javax.swing.JCheckBox();
        campoFinal = new javax.swing.JTextField();

        setClosable(true);
        setTitle("Cadastrar Notas e Faltas");

        labelDisc.setText("Disciplina:");

        cBoxDisc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cBoxDiscActionPerformed(evt);
            }
        });

        labelAluno.setText("Aluno:");

        cBoxAlunos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cBoxAlunosActionPerformed(evt);
            }
        });

        labelFaltas.setText("Faltas:");

        botaoCadastrar.setText("Cadastrar");
        botaoCadastrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoCadastrarActionPerformed(evt);
            }
        });

        labelAviso.setForeground(new java.awt.Color(255, 51, 51));
        labelAviso.setText("<html>Aviso:<br>\nPreencha os campos no formato dos exemplos abaixo.<br>\nFaltas: 0, 1, 2, ...; Notas: 9.7 , 10 , 2.53;");

        cbNota1.setText("Nota1:");
        cbNota1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbNota1ActionPerformed(evt);
            }
        });

        cbNota2.setText("Nota 2:");
        cbNota2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbNota2ActionPerformed(evt);
            }
        });

        cbNota3.setText("Nota 3:");
        cbNota3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbNota3ActionPerformed(evt);
            }
        });

        cbNota4.setText("Nota 4:");
        cbNota4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbNota4ActionPerformed(evt);
            }
        });

        cbFinal.setText("Final:");
        cbFinal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbFinalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cBoxAlunos, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cBoxDisc, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labelDisc)
                            .addComponent(labelAluno)
                            .addComponent(labelAviso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(cbFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(campoFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(28, 28, 28)
                                        .addComponent(labelFaltas)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(campoFaltas, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(cbNota1)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoNota1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(cbNota2)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoNota2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(cbNota3)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoNota3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(cbNota4)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoNota4, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(botaoCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addGap(0, 118, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelDisc)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cBoxDisc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(labelAluno)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cBoxAlunos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbNota1)
                    .addComponent(campoNota1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbNota2)
                    .addComponent(campoNota2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbNota3)
                    .addComponent(campoNota3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbNota4)
                    .addComponent(campoNota4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelFaltas)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(campoFinal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbFinal)
                        .addComponent(campoFaltas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(botaoCadastrar)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(labelAviso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cBoxDiscActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cBoxDiscActionPerformed
        // TODO add your handling code here:

        if (cBoxDisc.getActionCommand().equals("comboBoxChanged") && cBoxDisc.isEnabled()) {
            if (cBoxDisc.getSelectedIndex() != -1) {
                disciplina = Caderneta.getDisciplinas().get(cBoxDisc.getSelectedIndex());
                addAlunosNaCBox(disciplina);
                desabilitaCampos();
                botaoCadastrar.setEnabled(false);
            }
        }

    }//GEN-LAST:event_cBoxDiscActionPerformed

    private void cBoxAlunosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cBoxAlunosActionPerformed
        // TODO add your handling code here:
        if (cBoxAlunos.getActionCommand().equals("comboBoxChanged") && cBoxAlunos.isEnabled()) {
            if (cBoxAlunos.getSelectedIndex() != -1) {
                campoFaltas.setEnabled(true);
                campoFaltas.setText(Integer.toString(disciplina.getFaltas().get(cBoxAlunos.getSelectedIndex())[0]));
                cbNota1.setEnabled(true);
                qtdeNotas++;
                if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[0]) {
                    soma += disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[0];
                    cbNota1.doClick();
                }
                cbNota2.setEnabled(true);
                qtdeNotas++;
                if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[1]) {
                    soma += disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[1];
                    cbNota2.doClick();
                }
                if (disciplina.getQtdeNotas() > 3) {
                    cbNota3.setEnabled(true);
                    qtdeNotas++;
                    if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[2]) {
                        soma += disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[2];
                        cbNota3.doClick();
                    }
                }
                if (disciplina.getQtdeNotas() > 4) {
                    cbNota4.setEnabled(true);
                    qtdeNotas++;
                    if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[3]) {
                        soma += disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[3];
                        cbNota4.doClick();
                    }
                }
                boolean and = true;
                for(int i = 0 ; i < disciplina.getQtdeNotas()-1 ; i++){
                    and = and && disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[i];
                }
                if(soma/qtdeNotas > 4 && soma/qtdeNotas < 7 && and){
                    cbFinal.setEnabled(true);
                }
                botaoCadastrar.setEnabled(true);
            }
        }
    }//GEN-LAST:event_cBoxAlunosActionPerformed

    private void botaoCadastrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoCadastrarActionPerformed
        // TODO add your handling code here:
        try {
            soma = qtdeNotas = 0;
            double nota1 = 0, nota2 = 0, nota3 = 0, nota4 = 0, notaf = 0;
            int faltas;
            if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[0]) {
                nota1 = Double.parseDouble(campoNota1.getText());
            }
            if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[1]) {
                nota2 = Double.parseDouble(campoNota2.getText());
            }
            if (disciplina.getQtdeNotas() > 3) {
                if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[2]) {
                    nota3 = Double.parseDouble(campoNota3.getText());
                }
                if (disciplina.getQtdeNotas() > 4) {
                    if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[4]) {
                        nota4 = Double.parseDouble(campoNota4.getText());
                    }
                }
            }
            if (disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[disciplina.getQtdeNotas() - 1]) {
                notaf = Double.parseDouble(campoFinal.getText());
            }
            faltas = Integer.parseInt(campoFaltas.getText());
            if (nota1 > 10.00 || nota2 > 10.00 || nota3 > 10.00 || nota4 > 10.00
                    || nota1 < 00.00 || nota2 < 00.00 || nota3 < 00.00 || nota4 < 00.00) {
                JOptionPane.showMessageDialog(this, "Inervalo da nota: 0 a 10", "Erro", JOptionPane.ERROR_MESSAGE);
            } else {
                disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[0] = nota1;
                disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[1] = nota2;
                if (disciplina.getQtdeNotas() > 3) {
                    disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[2] = nota3;
                    if (disciplina.getQtdeNotas() > 4) {
                        disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[3] = nota4;
                    }
                }
                disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[disciplina.getQtdeNotas() - 1] = notaf;
                disciplina.getFaltas().get(cBoxAlunos.getSelectedIndex())[0] = faltas;
                JOptionPane.showMessageDialog(this, "Notas e faltas cadastradas", "Sucesso", JOptionPane.INFORMATION_MESSAGE);
                campoNota1.setText("");
                campoNota2.setText("");
                campoNota3.setText("");
                campoNota4.setText("");
                campoFinal.setText("");
                campoFaltas.setText("");
                desabilitaCampos();
                cBoxAlunos.setSelectedIndex(-1);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(this, "Preencha os campos corretamente", "Erro", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_botaoCadastrarActionPerformed

    private void cbNota1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbNota1ActionPerformed
        // TODO add your handling code here:
        if (cbNota1.isSelected()) {
            campoNota1.setEnabled(true);
            campoNota1.setText(tiraVirgula(decformat.format(disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[0])));
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[0] = true;
        } else {
            campoNota1.setText("");
            campoNota1.setEnabled(false);
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[0] = false;
        }
    }//GEN-LAST:event_cbNota1ActionPerformed

    private void cbNota2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbNota2ActionPerformed
        // TODO add your handling code here:
        if (cbNota2.isSelected()) {
            campoNota2.setEnabled(true);
            campoNota2.setText(tiraVirgula(decformat.format(disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[1])));
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[1] = true;
        } else {
            campoNota2.setText("");
            campoNota2.setEnabled(false);
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[1] = false;
        }
    }//GEN-LAST:event_cbNota2ActionPerformed

    private void cbNota3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbNota3ActionPerformed
        // TODO add your handling code here:
        if (cbNota3.isSelected()) {
            campoNota3.setEnabled(true);
            campoNota3.setText(tiraVirgula(decformat.format(disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[2])));
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[2] = true;
        } else {
            campoNota3.setText("");
            campoNota3.setEnabled(false);
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[2] = false;
        }
    }//GEN-LAST:event_cbNota3ActionPerformed

    private void cbNota4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbNota4ActionPerformed
        // TODO add your handling code here:
        if (cbNota4.isSelected()) {
            campoNota4.setEnabled(true);
            campoNota4.setText(tiraVirgula(decformat.format(disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[3])));
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[3] = true;
        } else {
            campoNota4.setText("");
            campoNota4.setEnabled(false);
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[3] = false;
        }
    }//GEN-LAST:event_cbNota4ActionPerformed

    private void cbFinalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbFinalActionPerformed
        // TODO add your handling code here:
        if (cbFinal.isSelected()) {
            campoFinal.setEnabled(true);
            campoFinal.setText(tiraVirgula(decformat.format(disciplina.getNotas().get(cBoxAlunos.getSelectedIndex())[disciplina.getQtdeNotas() - 1])));
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[disciplina.getQtdeNotas() - 1] = true;
        } else {
            campoFinal.setText("");
            campoFinal.setEnabled(false);
            disciplina.getSets().get(cBoxAlunos.getSelectedIndex())[disciplina.getQtdeNotas() - 1] = false;
        }
    }//GEN-LAST:event_cbFinalActionPerformed
    Disciplina disciplina;
    Aluno aluno;
    DecimalFormat decformat = new DecimalFormat("0.00");
    double soma = 0, qtdeNotas = 0;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botaoCadastrar;
    private javax.swing.JComboBox cBoxAlunos;
    private javax.swing.JComboBox cBoxDisc;
    private javax.swing.JTextField campoFaltas;
    private javax.swing.JTextField campoFinal;
    private javax.swing.JTextField campoNota1;
    private javax.swing.JTextField campoNota2;
    private javax.swing.JTextField campoNota3;
    private javax.swing.JTextField campoNota4;
    private javax.swing.JCheckBox cbFinal;
    private javax.swing.JCheckBox cbNota1;
    private javax.swing.JCheckBox cbNota2;
    private javax.swing.JCheckBox cbNota3;
    private javax.swing.JCheckBox cbNota4;
    private javax.swing.JLabel labelAluno;
    private final javax.swing.JLabel labelAviso = new javax.swing.JLabel();
    private final javax.swing.JLabel labelDisc = new javax.swing.JLabel();
    private final javax.swing.JLabel labelFaltas = new javax.swing.JLabel();
    // End of variables declaration//GEN-END:variables
}
